package com.urchin.avatarhero.questview;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.Menu;
import android.widget.ArrayAdapter;
import android.widget.ListView;

import com.urchin.avatarhero.R;

/**********************************************************************
AvatarHero - A task management RPG Android Application
Copyright (C) 2013  Peter Clay

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
***********************************************************************/

public abstract class QuestView extends FragmentActivity {
	protected ArrayAdapter<String> qadapter = null;
	protected ListView listView = null;
	protected int mStackLevel = 0;	
	protected FragmentActivity act = this;

	public QuestView() {
		
	}
	
	@Override
	protected void onRestart() {
		super.onRestart();
		this.refresh();
	}
	
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.setup, menu);
		return true;
	}
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.quests);
		setTitle(R.string.app_name);	      
	     
		refresh();
	}
	
	protected void refresh() {
		// Override this
	}
}
